<?php
include_once('../includes/definer.php');
include_once(INC.'php/bootstrap.php');
$estados = Doctrine_Query::create()
        ->select('e.id as value, e.value as text ')
        ->from('Estado e')
        ->where('e.id <> '.Estado::BORRADO)
        ->execute(array(), Doctrine::HYDRATE_ARRAY);
echo(json_encode($estados));
?>